package com.ddwl.schema.bo.goods;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @author: hemiaojun
 * @Date: 2020/11/19
 * @Description:
 */
@Getter
@Setter
@ApiModel("app发表文章bo")
public class SelfAcademyAddBo {

    @NotNull(message = "标题不能为空")
    @ApiModelProperty("标题")
    private String title;

    @Size(max = 80,message = "副标题最多80个字")
    @ApiModelProperty("副标题")
    private String secondTitle;

    @ApiModelProperty("跳转链接")
    private String skipUrl;

    @NotNull(message = "文章分类不能为空")
    @ApiModelProperty("分类id")
    private String academyCategoryId;

    @ApiModelProperty("封面图")
    private String imageUrl;

    @ApiModelProperty("文章")
    private String essay;

    @ApiModelProperty("media")
    private String media;

    @ApiModelProperty("视频文章内容（发表视频文章时保存文字内容）")
    private String mediaText;
    @ApiModelProperty("文章类型，0：图文，1：视频")
    private Integer essayType;
}
